package com;

import com.bean.Car;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MainConfig {

    @Bean
    public Car car1(){
        Car car = new Car();
        car.setId("1");
        car.setName("奔驰");
        car.setPrice(1000000);
        return car;
    }

}
